<template>
  <div class="box">
    <Category title="美食">
      <template scope="{foods}">
        <ul>
          <li v-for="(food,index) in foods" :key="index">
            {{food}}
          </li>
        </ul>
      </template>
    </Category>

    <Category title="游戏">
      <template scope="{games}">
        <ol>
          <li v-for="(game,index) in games" :key="index">
            {{game}}
          </li>
        </ol>
      </template>
    </Category>

    <Category title="电影">
      <template scope="{films}">
        <h4 v-for="(film,index) in films" :key="index">{{film}}</h4>
      </template>
    </Category>
  </div>
  
</template>

<script>
  import Category from "./components/Category.vue"
  export default {
    name:"App",
    components:{
      Category  
    },
    
  }
</script>

<style>
  .box,.foot{
    display:flex;
    justify-content: space-around;
  }
  img{
    width:100%
  }
  video{
    width:100%;
  }
</style>